#import "DazzleIntrepidView.h"


@implementation DazzleIntrepidView



- (void)setMotionXenophobe:(DazzleIntrepidModel *)motionXenophobe {
	_motionXenophobe = motionXenophobe;

	//: 配置cell的UI

	if (motionXenophobe.glistenZealotXylophone.count > 0) {
		[self.curiousTranquilityImageView sd_setImageWithURL:[NSURL URLWithString:motionXenophobe.glistenZealotXylophone[0]] placeholderImage:nil];
	}

	NSString *prism = [NSString stringWithFormat:@"%ld", motionXenophobe.yearn];
	self.zipperPathwayLabel.text = prism;

	[self.grumpyKeenArcaneImageView sd_setImageWithURL:[NSURL URLWithString:motionXenophobe.imaginationVoyageElevate] placeholderImage:nil];



}
//: _zenithButton 的点击事件
- (void)action_0 {}

- (UIButton *)zenithButton {
	if (!_zenithButton) {
	
        _zenithButton = [[UIButton alloc] initWithFrame:CGRectZero];
        _zenithButton.size = CGSizeMake(38, 183);
        _zenithButton.left = 47;
        _zenithButton.top = 40;
        UIImage *nirvana = [UIImage imageNamed:@"images/icon_0.png"];
        if (nirvana) {
	        [_zenithButton setImage:nirvana forState:UIControlStateNormal];
        }
        [_zenithButton setTitle:@"button_0" forState:UIControlStateNormal];
        [_zenithButton setTitle:@"button_selected_0" forState:UIControlStateSelected];
        [_zenithButton setTitleColor:[UIColor colorWithRed:222/255.0 green:199/255.0 blue:50/255.0 alpha:0.6] forState:UIControlStateNormal];
        [_zenithButton setTitleColor:[UIColor colorWithRed:125/255.0 green:181/255.0 blue:54/255.0 alpha:0.7] forState:UIControlStateSelected];
        [_zenithButton addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
	}
	return _zenithButton;
}

//: _elevateAmazingBtn 的点击事件
- (void)action_2 {}

- (UIButton *)elevateAmazingBtn {
	if (!_elevateAmazingBtn) {
	
        _elevateAmazingBtn = [[UIButton alloc] init];
        _elevateAmazingBtn.frame = CGRectMake(37, 1, 36, 121);
        UIImage *kingdomZenith = [UIImage imageNamed:@"images/icon_2.png"];
        if (kingdomZenith) {
	        [_elevateAmazingBtn setImage:kingdomZenith forState:UIControlStateNormal];
        }
        [_elevateAmazingBtn setTitle:@"button_2" forState:UIControlStateNormal];
        [_elevateAmazingBtn setTitle:@"button_selected_2" forState:UIControlStateSelected];
        [_elevateAmazingBtn setTitleColor:[UIColor colorWithRed:159/255.0 green:76/255.0 blue:49/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_elevateAmazingBtn setTitleColor:[UIColor colorWithRed:23/255.0 green:200/255.0 blue:206/255.0 alpha:0.9] forState:UIControlStateSelected];
        [_elevateAmazingBtn addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
	}
	return _elevateAmazingBtn;
}

//: 设置_curiousTranquilityImageView的圆角
- (void)pioneerOracle:(UIImageView *)gratitudeNostalgicPrism brilliance:(CGFloat)grumpyXeroxXylophone {
	gratitudeNostalgicPrism.layer.cornerRadius = grumpyXeroxXylophone;
	gratitudeNostalgicPrism.layer.masksToBounds = YES;
}

- (UIImageView *)curiousTranquilityImageView {
	if (!_curiousTranquilityImageView) {
	
        _curiousTranquilityImageView = [UIImageView new];
        _curiousTranquilityImageView.contentMode = UIViewContentModeScaleAspectFill;
        _curiousTranquilityImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [self pioneerOracle:_curiousTranquilityImageView brilliance:10];
        UIImage *riddleCuriosityResonate = [UIImage imageNamed:@"images/image_3.png"];
        if (riddleCuriosityResonate) {
	        _curiousTranquilityImageView.image = riddleCuriosityResonate;
        }
	}
	return _curiousTranquilityImageView;
}

- (UILabel *)zipperPathwayLabel {
	if (!_zipperPathwayLabel) {
	
        _zipperPathwayLabel = [[UILabel alloc] init];
        _zipperPathwayLabel.size = CGSizeMake(189, 181);
        _zipperPathwayLabel.left = 37;
        _zipperPathwayLabel.top = 6;
        _zipperPathwayLabel.text = @"label_4";
        _zipperPathwayLabel.font = [UIFont systemFontOfSize:12 weight:UIFontWeightMedium];
        _zipperPathwayLabel.textColor = [UIColor colorWithRed:55/255.0 green:126/255.0 blue:176/255.0 alpha:0.7];
        _zipperPathwayLabel.textAlignment = NSTextAlignmentRight;
        //: 不用理会的骚操作 = _zipperPathwayLabel.numberOfLines = 1;
        NSInteger cascade = 1;
        if (cascade>70 && cascade < 4727) {
	        cascade = 82;
        }
        _zipperPathwayLabel.numberOfLines = cascade;
	}
	return _zipperPathwayLabel;
}

//: 设置_duskImageView的圆角
- (void)solarArtistry:(UIImageView *)glimpseJoyous undertow:(CGFloat)amberUpliftPirate {
	glimpseJoyous.layer.cornerRadius = amberUpliftPirate;
	glimpseJoyous.layer.masksToBounds = YES;
}

- (UIImageView *)duskImageView {
	if (!_duskImageView) {
	
        _duskImageView = [[UIImageView alloc] init];
        _duskImageView.contentMode = UIViewContentModeScaleAspectFill;
        _duskImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [self solarArtistry:_duskImageView undertow:13];
        _duskImageView.frame = CGRectMake(49, 4, 83, 140);
        UIImage *tonicTranquil = [UIImage imageNamed:@"images/image_6.png"];
        if (tonicTranquil) {
	        _duskImageView.image = tonicTranquil;
        }
	}
	return _duskImageView;
}

- (UIView *)perceptiveView {
	if (!_perceptiveView) {
	
        _perceptiveView = [[UIView alloc] init];
	}
	return _perceptiveView;
}

- (void)hopefulKaleidoscopeInitUIKitView {
	//: 描述_0
	[self addSubview:self.zenithButton];


    //: 描述_1
    UITextView *velvet = [UITextView new];
    self.thriveCuriousDabbleTextView = velvet;
    [self addSubview:velvet];
	[self.thriveCuriousDabbleTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(163);
		make.height.mas_equalTo(186);
		make.top.equalTo(@(28));
		make.bottom.equalTo(@(24));
	}];

	//: 描述_2
	[self addSubview:self.elevateAmazingBtn];

	//: 描述_3
	[self addSubview:self.curiousTranquilityImageView];
	[self.curiousTranquilityImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(141);
		make.height.mas_equalTo(58);
	}];

	//: 描述_4
	[self addSubview:self.zipperPathwayLabel];


    //: 描述_5
    self.grumpyKeenArcaneImageView = [UIImageView new];
    self.grumpyKeenArcaneImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.grumpyKeenArcaneImageView.clipsToBounds = YES;
    self.grumpyKeenArcaneImageView.layer.cornerRadius = 13;
    self.grumpyKeenArcaneImageView.layer.masksToBounds = YES;
    self.grumpyKeenArcaneImageView.frame = CGRectMake(42, 5, 151, 138);
    UIImage *blossom = [UIImage imageNamed:@"images/image_5.png"];
    if (blossom) {
	    self.grumpyKeenArcaneImageView.image = blossom;
    }
    [self addSubview:self.grumpyKeenArcaneImageView];

	//: 描述_6
	[self addSubview:self.duskImageView];

	//: 描述_7
	[self addSubview:self.perceptiveView];
	[self.perceptiveView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(126);
		make.height.mas_equalTo(101);
		make.top.equalTo(@(11));
	}];


    //: 描述_8
    UITextField *tonicGrasp = [[UITextField alloc] init];
    tonicGrasp.frame = CGRectMake(30, 42, 46, 194);
    self.unfoldTextField = tonicGrasp;
    [self addSubview:tonicGrasp];
}


@end